/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase202202 - While2
 * <p>Powered by Lisi On 2022-06-02 09:34:55
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class While2 {
    public static void main(String[] args) throws Exception {
        int i = 1;
        while (true) {
            System.out.println(i++);
            //当前线程休眠1000 是1s
            Thread.sleep(5000);
        }
    }
}
